import re
def contain_str(s1:str, s2):
    return s1.find(s2)>-1


# ret = contain_str('abc','')
# print(ret)

if __name__ == '__main__':
    str_partent="(.+?)-(.+?)"
    m=re.match(str_partent,"1-2")
    print(m.group(1), m.group(2))